package com.silverbox.shopper.service.order;

import java.util.Date;
import java.util.List;

import com.silverbox.shopper.entity.CupboardOrderRecord;
import com.silverbox.shopper.entity.RelMachineHardWare;

public interface OrderService {

	/**
	 * 获取订单序号
	 * @param storeId
	 * @param orderType
	 * @return
	 */
	Integer updateAndGetOrderSeq(Integer storeId, Integer orderType);

	/**
	 * 获取在线订单取餐柜状态
	 * @param orderNum
	 * @return
	 */
	List<CupboardOrderRecord> getOnlineMealRecordByNum(CupboardOrderRecord orderRecord);
	
	/**
	 * 获取店铺机器绑定信息
	 * @param machineHard
	 * @return
	 */
	RelMachineHardWare getMachineHardWareInfo(RelMachineHardWare machineHard);

	/**
	 * 新增取餐柜的柜子信息
	 * @param orderRecord
	 * @return
	 */
	int saveCupboardOrderRecord(CupboardOrderRecord orderRecord);

	/**
	 * 获取订单单个菜品取餐柜状态
	 * @param orderNum
	 * @param itemId
	 * @return
	 */
	List<CupboardOrderRecord> getCupboardGoodsStatus(String orderNum, Long itemId,Date createTime);

	/**
	 * 获取订单是否已开具发票
	 * @param storeId
	 * @param shopId
	 * @param orderNum
	 * @return
	 */
	boolean isOpenInvoice(Integer storeId, String orderNum);
}
